<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const obj = new Map([['name','zs']])
        // 获取
        console.log(obj.get('name'));
        // 查询
        console.log(obj.has('name'));
        console.log(obj.has('gender'));
        // 添加
        obj.set('price',1234)
        console.log(obj.get('price'));
    </script>
</body>
</html>